树莓派摄像头
树莓派摄像头模块没有/dev/video0设备节点的问题
/etc/下面的modules-load.d/rpi-camera.conf
打开文件在里面添加一行 bcm2835-v4l2
重启就会在/dev/下面发现video0设备节点了
安装oss sdk
pip install oss2
创建live_channel
https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/live_channel.py?spm=a2c4g.11186623.2.37.ibKSTt&file=live_channel.py
1 | # -*- coding: utf-8 -*- |
生成的channel url
1 | rtmp://live-move.oss-cn-shanghai.aliyuncs.com/live/test_rtmp_live |